<?php

require '../TestConfiguration.php';
require TestConfiguration::SIMPLETEST_PATH . '/unit_tester.php';
require TestConfiguration::SIMPLETEST_PATH . '/mock_objects.php';
require TestConfiguration::SIMPLETEST_PATH . '/reporter.php';

require TestConfiguration::SWIFT_LIBRARY_PATH . '/Swift.php';
Swift_ClassLoader::load("Swift_Events_SendEvent");
Swift_ClassLoader::load("Swift_Events_DisconnectEvent");
Swift_ClassLoader::load("Swift_Events_ConnectEvent");
Swift_ClassLoader::load("Swift_Events_CommandEvent");
Swift_ClassLoader::load("Swift_Events_ResponseEvent");
Swift_ClassLoader::load("Swift_Events_ConnectListener");
Swift_ClassLoader::load("Swift_Events_DisconnectListener");
Swift_ClassLoader::load("Swift_Events_BeforeSendListener");
Swift_ClassLoader::load("Swift_Events_SendListener");
Swift_ClassLoader::load("Swift_Events_CommandListener");
Swift_ClassLoader::load("Swift_Events_BeforeCommandListener");
Swift_ClassLoader::load("Swift_Events_ResponseListener");
require_once 'stubs/DummyConnection.php';
require_once 'stubs/MimeExtension.php';
require 'testcases/TestOfPluginAPI.php';

$test = new TestOfPluginAPI();
$test->run(new HtmlReporter());
